package com.hnit.web.Clients;

import com.hnit.web.Utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "fileUpload") // **** 这里从 "id-generator-service" 改为 "idGenerator" ****
public interface UploadServiceClient {
    @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    ResponseResult uploadFile(@RequestPart("uploadFiles") MultipartFile[] files);
}
